package com.woniuxy.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.common.model.dto.PageRequest;
import com.woniuxy.common.result.Result;
import com.woniuxy.provider.model.entity.Stu;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "stu-service",path = "/stu")
public interface StuApi {

    @PostMapping("/list")
    Result<Page<Stu>> list(@RequestBody PageRequest pageRequest);

    @PostMapping("/remove")
    Result remove(@RequestParam("id") Integer id);

}
